<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .box {
      /* 权重 10000 */
      color: red !important;
    }

    /* 类选择器,属性选择器,伪类:10 */
    .one {
      color: blue;
    }

    /* ID选择器:100 */
    #main {
      color: #000;
    }

    /* 元素选择器:1 */
    div {
      color: purple;
    }

    /* 通配符:0 */
    * {
      color: yellow;
    }
  </style>
</head>

<body>
  <!-- 内联样式:1000 -->
  <div id='main' class="box one two" style="color: blue;">我是div元素</div>

</body>

</html>